package com.ksm.zyz.sys.mapper;


import com.ksm.zyz.sys.entity.Combobox;
import com.ksm.zyz.common.base.BaseMapper;
import com.ksm.zyz.sys.entity.ExtTree;
import com.ksm.zyz.sys.entity.SysUser;

import java.util.List;
import java.util.Set;

public interface SysUserMapper extends BaseMapper<SysUser> {

    Set<String> findRoles(String loginName);

    Set<String> findPermission(String loginName);

    SysUser findByLoginName(String loginName);

    SysUser checkLogin(String loginName,String password);

    List<ExtTree> findMenuInfo(String roleId);

    void resetPwd(String password,String userId);

    int checkLoginName(SysUser sysUser);

    List<Combobox> getCombobox(String label);

}
